<?php
$this->pageTitle = '我的红包';
?>
<div id="couponslist">
    <div class="infolist cols1 cl">
        <div class="col cl">
            <div class="tit"></div>
            <div class="inp cl" style="width:890px;">
                <div class="z f_16 c_gray">
                    红包金额
                </div>
                <div class="y cl">
                    <div class="z c_gray" style="width:150px; text-align: center;">领取时间</div>
                    <div class="z c_gray" style="width:150px; text-align: center;">有效期止</div>
                    <div class="z c_gray" style="width:150px; text-align: center;">使用时间</div>
                </div>
            </div>
        </div>
    </div>
    <?php if (count($row) > 0): ?>
        <?php foreach ($row as $key => $value) {
            ?>
            <div class="infolist cols1 cl">
                <div class="col cl">
                    <div class="tit"></div>
                    <div class="inp cl" style="width:890px;">
                        <div class="z f_16 c_orange">
                            ￥<?php echo number_format($value['exemptionAmount'], 2); ?>
                        </div>
                        <div class="y cl">
                            <div class="z" style="width:150px; text-align: center;"><?php echo date('Y-m-d', strtotime($value['activeStartTime'])); ?></div>
                            <div class="z" style="width:150px; text-align: center;"><?php echo date('Y-m-d', strtotime($value['activeEndTime'])); ?></div>
                            <div class="z" style="width:150px; text-align: center;"><?php echo!$value['useTime'] ? '—' : date('Y-m-d', strtotime($value['useTime'])); ?></div>
                        </div>
                    </div>
                </div>
            </div>
            <?php
        }
    else:
        ?>
        <div class="infolist cols1 cl">
            <div class="col cl">
                <div class="inp cl" style="width:1010px;">
                    <div style="text-align: center">
                        你还没有任何红包哦，赶快去领取吧！<a href="<?php echo $this->createUrl('activity/ten'); ?>" class="f_14 c_orange"><u>领取红包</u></a>
                    </div>
                </div>
            </div>
        </div>
    <?php endif; ?>
</div>
<div class="f_14 c_gray" style="height:30px;line-height: 30px;">温馨提示：红包在付款界面里使用哦，别忘了！</div>

